
cmake_minimum_required(VERSION 3.4.1)

add_library( # Sets the name of the library.
             native-lib
             SHARED
             native-lib.cpp
        dgif_lib.c
        egif_lib.c
        gif_err.c
        gif_font.c
        gif_hash.c
        quantize.c
        gifalloc.c)
find_library( # Sets the name of the path variable.
              log-lib
              log )
find_library(  jnigraphics-lib
        jnigraphics )
target_link_libraries( # Specifies the target library.
                       native-lib
                       ${jnigraphics-lib}
                       ${log-lib} )